package com.lsj;

import com.lsj.service.TestService;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Main {

    public static void main(String[] args) {
        ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext("classpath:application.xml");
        TestService testService = (TestService) ctx.getBean("testService");
        try {
            testService.run();
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
